home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Gold Fish 3
/
goldfish_volume_3.bin
/
files
/
text
/
misc
/
cvt
/
scripts
/
ascii->trigraph.cvt
< prev
next >
Wrap
Text File
|
1993-12-31
|
716b
|
27 lines
/*
* ASCII->TRIGRAPH.CVT
*
* The character set of C source programs is contained within seven-bit
* ASCII, but is a superset of the ISO 646-1983 Invariant Code Set.
* In order to enable programs to be represented in the reduced set,
* all occurrences of the following trigraph sequences are replaced by
* the corresponding single character.
*
* Taken from THE C PROGRAMMING LANGUAGE by Brian W. Kernighan and
* Dennis M.Ritchie, 2nd Edition p.229
*
* Implementation as CVT scriptfile by Tobias Ferber 1993.
*/
"#" -> "??=";
"\\" -> "??/";
"^" -> "??'";
"[" -> "??(";
"]" -> "??)";
"|" -> "??!";
"{" -> "??<";
"}" -> "??>";
"~" -> "??-";
// No other such replacements occur.